package cn.aj.system.service.impl;

import cn.aj.basic.service.impl.BaseServiceImpl;
import cn.aj.system.domain.Detail;
import cn.aj.system.mapper.DetailMapper;
import cn.aj.system.service.DetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class DetailServiceImpl extends BaseServiceImpl<Detail> implements DetailService {

    @Autowired
    private DetailMapper detailMapper;

    @Override
    @Transactional
    public void delete2(Long id) {
        detailMapper.delete2(id);
    }

    @Override
    @Transactional
    public void batchDelete(List<Long> ids) {
        detailMapper.batchDelete(ids);
    }

    @Override
    public List<Detail> loadTypeId(Long id) {
        return detailMapper.loadTypeId(id);
    }


}
